package com.runen.wnhz.runen.service;

import com.runen.wnhz.runen.data.entity.BaseEntity;
import com.runen.wnhz.runen.data.entity.BaseUnified;
import com.runen.wnhz.runen.data.entity.MyOrderListBean;
import com.runen.wnhz.runen.data.entity.UploadImgEntity;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * 描述： 我的订单接口
 * 作者： 天天童话丶
 * 时间： 2018/6/1.
 */

public interface MyOrderServiceApi {

    /**
     *我的订单列表
     */
    @FormUrlEncoded
    @POST("Order_myOrder")
    Observable<BaseEntity<MyOrderListBean>> getMyOrderList(@FieldMap Map<String, String> params);

    /**
     *取消订单
     */
    @FormUrlEncoded
    @POST("Order_cancelOrder")
    Observable<BaseUnified> cancelOrder(@FieldMap Map<String, String> params);
}
